// (View Maximized with word wrap off)
// 3d World Creator
// Made by Shreyas Potnis.
// What do you need to do?
// At the beggining, there is a number just after Number Of Triangles. This denotes the number of
// Triangles in the world which you are designing.
// Comments are allowed inside the text, but each comment line SHOULD start with a //
// You need to write down the vertices of the triangles serially after the Number Of Textures statement
// The syantax is : x y z x1 y1, where x is the x coordinate of the vertex, y is the y coordinate
// and z is the z coordinate. x1 and y1 are the x and y coordinates of the texture which is loaded.
// Range: for the vertices of the triangle, the range is -infinity to +infinity and for the
// texture it is from 0 to infinity. The texture will automatically get wrapped once its coord-
// inates exceed 1. Matching the texture coordinates with the vertices of the triangle is very 
// important for proper looking planes. The vertices sould be plotted in anti clockwise direction,
// else the texture will be inverted.
// Fog color parameters are red green blue alpha. IsFogEnabled? should be 0 to disable fog.
// else it should be non zero
// Note: Make sure you do not skip any vertex of a triangle, else the next vertex will be considered
// as the previous one. This may create large problems.
// Note2: Number Of Textures isnt still working. All the 5 textures are loaded.
// When number of textures option is out, it will support 99 textures :).
// Now only 5 textures are supported :(

// This world is a simple example of a 3d room.
Number Of Triangles 24
Number Of Textures 2
IsFogEnabled? 0
Fog Color 0.0 0.0 0.2 0.1

// Floor 1
Texture Number 1
-10.0  -1.0 -10.0 0.0 20.0
-10.0  -1.0  10.0 0.0 0.0
 10.0  -1.0  10.0 20.0 0.0
Texture Number 1
-10.0  -1.0 -10.0 0.0 20.0
 10.0  -1.0 -10.0 20.0 20.0
 10.0  -1.0  10.0 20.0 0.0

// Ceiling
Texture Number 2
-10.0  1.0 -10.0 0.0 20.0
-10.0  1.0  10.0 0.0 0.0
 10.0  1.0  10.0 20.0 0.0
Texture Number 2
-10.0  1.0 -10.0 0.0 20.0
 10.0  1.0 -10.0 20.0 20.0
 10.0  1.0  10.0 20.0 0.0

// Wall left
Texture Number 3
-10.0 -1.0 -10.0 0.0 0.0
-10.0 -1.0  10.0 20.0 0.0
-10.0  1.0 -10.0 0.0 2.0

Texture Number 3
-10.0  1.0 -10.0 0.0 2.0
-10.0 -1.0  10.0 20.0 0.0
-10.0  1.0  10.0 20.0 2.0

// Wall right
Texture Number 3
 10.0 -1.0 -10.0 0.0 0.0
 10.0 -1.0  10.0 20.0 0.0
 10.0  1.0 -10.0 0.0 2.0

Texture Number 3
 10.0  1.0 -10.0 0.0 2.0
 10.0 -1.0  10.0 20.0 0.0
 10.0  1.0  10.0 20.0 2.0

// Wall front
Texture Number 3
-10.0 -1.0 -10.0 0.0 0.0
 10.0 -1.0 -10.0 20.0 0.0
-10.0  1.0 -10.0 0.0 2.0

Texture Number 3
-10.0  1.0 -10.0 0.0 2.0
 10.0 -1.0 -10.0 20.0 0.0
 10.0  1.0 -10.0 20.0 2.0

// Wall back
Texture Number 3
-10.0 -1.0  10.0 0.0 0.0
 10.0 -1.0  10.0 20.0 0.0
-10.0  1.0  10.0 0.0 2.0

Texture Number 3
-10.0  1.0  10.0 0.0 2.0
 10.0 -1.0  10.0 20.0 0.0
 10.0  1.0  10.0 20.0 2.0

// Raised Front - Facing straight
Texture Number 4
-10.0 -1.0 -9.0 0.0 1.0
 10.0 -0.8 -9.0 10.0 0.8
-10.0 -0.8 -9.0 0.0 0.8

Texture Number 4
-10.0 -1.0 -9.0 0.0 1.0
 10.0 -0.8 -9.0 10.0 0.8
 10.0 -1.0 -9.0 10.0 1.0

// Raised Front - Facing Up
Texture Number 4
-10.0 -0.8 -9.0 0.0 1.8
 10.0 -0.8 -10.0 10.0 0.8
-10.0 -0.8 -10.0 0.0 0.8

Texture Number 4
-10.0 -0.8 -9.0 0.0 1.8
 10.0 -0.8 -10.0 10.0 0.8
 10.0 -0.8 -9.0 10.0 1.8

// Raised Back - Facing straight
Texture Number 4
-10.0 -1.0 9.0 0.0 1.0
 10.0 -0.8 9.0 10.0 0.8
-10.0 -0.8 9.0 0.0 0.8

Texture Number 4
-10.0 -1.0 9.0 0.0 1.0
 10.0 -0.8 9.0 10.0 0.8
 10.0 -1.0 9.0 10.0 1.0

// Raised Back - Facing Up
Texture Number 4
-10.0 -0.8 9.0 0.0 1.8
 10.0 -0.8 10.0 10.0 0.8
-10.0 -0.8 10.0 0.0 0.8

Texture Number 4
-10.0 -0.8 9.0 0.0 1.8
 10.0 -0.8 10.0 10.0 0.8
 10.0 -0.8 9.0 10.0 1.8

// Pyramid Face1 - Front
Texture Number 5
-0.5 0.0 -0.5 0.5 0.5
 0.0 0.5 0.0 1.0 0.0
 0.5 0.0 -0.5 1.5 0.5

// Pyramid Face2 - Back
Texture Number 5
-0.5 0.0 0.5 0.5 0.5
 0.0 0.5 0.0 1.0 0.0
 0.5 0.0 0.5 1.5 0.5

// Pyramid Face3 - Left
Texture Number 5
 0.5 0.0 -0.5 0.5 0.5
 0.0 0.5 0.0 1.0 0.0
 0.5 0.0 0.5 1.5 0.5

// Pyramid Face4 - Right
Texture Number 5
-0.5 0.0 -0.5 0.5 0.5
 0.0 0.5 0.0 1.0 0.0
-0.5 0.0 0.5 1.5 0.5
